package com.houtai.bean.dto.article;


import com.houtai.base.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel(value="文章列表所需参数", description="文章列表所需参数")
public class ArticleListDto extends Page {

    @NotNull(message = "文章名称不能为空")
    @ApiModelProperty(value="文章名称 可为空字符串", name="arti_name", example = "")
    private String arti_name;
    /**
     * 类别id
     */
    @NotNull(message = "类别id不能为空")
    @ApiModelProperty(value="类别id", name="cate_id", example = "1")
    private Integer cate_id;
    /**
     * 是否推荐 0是1否
     */
    @NotNull(message = "是否推荐不能为空")
    @ApiModelProperty(value="是否推荐 0是1否(传0是类别id无效)", name="is_recommended", example = "1")
    private Integer is_recommended;

    public Integer getCate_id() {
        return cate_id;
    }

    public void setCate_id(Integer cate_id) {
        this.cate_id = cate_id;
    }

    public Integer getIs_recommended() {
        return is_recommended;
    }

    public void setIs_recommended(Integer is_recommended) {
        this.is_recommended = is_recommended;
    }

    public String getArti_name() {
        return arti_name;
    }

    public void setArti_name(String arti_name) {
        this.arti_name = arti_name;
    }
}
